package com.wunong.smart.commission.client.enums;

import com.wunong.smart.domain.platform.common.IEnum;
import com.wunong.smart.domain.platform.utils.ICodes;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 代办状态
 *
 * @author create by zealot.zt
 */
@AllArgsConstructor
@Getter
public enum CommissionStatusEnum implements IEnum {

    PROCESSING(1, "代办中"),
    FINISHED(2, "已办结"),
    CANCELED(3, "已取消"),
    ;

    private int code;
    private String name;

    public static CommissionStatusEnum of(Integer code) {
        return ICodes.findFirst(CommissionStatusEnum.values(), code);
    }

}
